﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Zhaoxi.HeatExchange.Controls
{
    /// <summary>
    /// PipeLine.xaml 的交互逻辑
    /// </summary>
    public partial class PipeLine : UserControl
    {
        public double CapRadius { get; set; } = 3;

        public PipeLine()
        {
            InitializeComponent();
        }

        private PipeLineDirection _direction = PipeLineDirection.LeftToRight;

        public PipeLineDirection Direction
        {
            get { return _direction; }
            set
            {
                _direction = value;

                VisualStateManager.GoToState(this, value.ToString(), false);
            }
        }

    }

    public enum PipeLineDirection
    {
        LeftToRight, RightToLeft
    }
}
